package ru.sgu.diploma.practic.gui;

import org.springframework.beans.factory.annotation.Autowired;
import ru.sgu.diploma.practic.gui.dftab.DetermineFuntionTab;
import ru.sgu.diploma.practic.service.Application;

import javax.swing.*;
import javax.swing.border.TitledBorder;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * User: datmakin
 * Date: 15.03.11
 * Email: atmakin.dv@gmail.com
 */
public class MainWindow extends JFrame {

    private DetermineFuntionTab determineFuntionTab;

    public void fire() {
        configurate();
        add(determineFuntionTab);

        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }

    public void configurate() {
        setSize(570, 650);
        try {
            UIManager.setLookAndFeel(
                    UIManager.getCrossPlatformLookAndFeelClassName());
        } catch (Exception e) {
            //nop
        }
    }

    public DetermineFuntionTab getDetermineFuntionTab() {
        return determineFuntionTab;
    }

    public void setDetermineFuntionTab(DetermineFuntionTab determineFuntionTab) {
        this.determineFuntionTab = determineFuntionTab;
    }


}
